/* =============================================
Comment: 체크박스 에서 값을 처리
Return :
Usage  :
============================================= */
function applyCheckbox(metaField, delim) {
	var thisObj = document.all(metaField + "_");
	var checkValues = "";
	
	for (var i = 0; i < thisObj.length - 1; i++) {
		if (thisObj[i].checked) {
			if (!isEmpty(checkValues)) {
				checkValues += delim;
			}
			checkValues += thisObj[i].value;
		}
	}
	
	document.all(metaField).value = checkValues;
}


/* =============================================
Comment: 다중선택이 가능한 페이지 팝업
Return :
Usage  :
============================================= */
function selectList(metaField, optionListKey, delim) {
	var tUrl = "/cms/content/registration/p_select_code_list_popup.jsp"
			+ "?metaValue=" + document.all(metaField).value
			+ "&listKey=" + optionListKey
			+ "&delim=" + delim
			+ "&targetField=document.all(" + metaField + ")";

	win = openWindow(tUrl, metaField + "Win", 400, 400, "resizable=yes, scrollbars=yes");
	win.focus();
}


/* =============================================
Comment: 팝업에서 데이터 입력
Return :
Usage  :
============================================= */
function selectOnPopup(metaField, tUrl) {
	if (!isEmpty(tUrl)) {
		tUrl += "?metaValue=" + document.all(metaField).value
				+ "&targetField=document.all(" + metaField + ")";

		win = openWindow(tUrl, metaField + "PopWin", 400, 400, "resizable=yes, scrollbars=yes");
		win.focus();
	}
}